summaryrefslogtreecommitdiffstats
path: root/dist/changes-5.15.1
blob: d6b8ff54c48bb3df01e9909800956be094f40cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
Qt 5.15.1 is a bug-fix release. It maintains both forward and backward
compatibility (source and binary) with Qt 5.15.0.

For more details, refer to the online documentation included in this
distribution. The documentation is also available online:

https://doc.qt.io/qt-5/index.html

The Qt version 5.15 series is binary compatible with the 5.14.x series.
Applications compiled for 5.14 will continue to run with 5.15.

Some of the changes listed in this file include issue tracking numbers
corresponding to tasks in the Qt Bug Tracker:

https://bugreports.qt.io/

Each of these identifiers can be entered in the bug tracker to obtain more
information about a particular change.

****************************************************************************
*                        Important Behavior Changes                        *
****************************************************************************

 - QSharedPointer objects will now call custom deleters even when the
   pointer being tracked was null. This behavior is the same as
   std::shared_ptr.
 - Restored pre-5.15.0 behavior when converting from QVariant* to QJson*
   types. Unforeseen consequences of changes in 5.15.0 caused QByteArray
   data to be base64url-encoded; the handling of QRegularExpression was
   also unintentionally changed. These conversions are now reverted to the
   prior behavior. Additionally fixed QJsonValue::fromVariant conversions
   for NaN and infinities: they should always convert to QJsonValue::Null.

****************************************************************************
*                                  QtCore                                  *
****************************************************************************

 - JSON
   * Fixed a regression from 5.14 that caused values of default-constructed
     QVariants in QVariantLists, QVariantMaps and QVariantHashes to
     disappear when converting to JSON via fromVariant{,List,Map,Hash}.

 - QCborMap
   * Fixed a bug that could cause the iterator returned from a failing key
     search with find() not to match end(). Now, every call to find() will
     detach in shared QCborMaps; to avoid this, use constFind() and
     constEnd().

 - QFile:
   * moveToTrash now creates the trash folder on Linux as
     $XDG_DATA_HOME/Trash, as required by the freedesktop.org spec.
   * moveToTrash supports relative file paths on Windows.

 - QImage:
   * Fixed buffer overflow in XBM parser.
   * [oss-fuzz-23988] Fixed buffer overflow in XPM parser.

 - QJsonDocument:
   * Fixed a bug that caused QJsonDocument's equality operator to crash if
     one of the operands was default-constructed and the other wasn't.

 - QString:
   * Fixed quadratic worst-case complexity of remove(QString). The function
     now has linear complexity in all cases.

 - QTimeLine:
   * Deprecated QTimeLine's curveShape property in favor of the easingCurve
     property.

 - QXmlStreamReader:
   * [oss-fuzz-24347] Reduced memory consumption when handling huge input data.

 - mkspecs:
   * Explicitly enable float-divide-by-zero when configuring Qt with
     "-sanitize undefined". Before clang 9, it was implicitly enabled when
     -fsanitize=undefined was set.

****************************************************************************
*                                  QtGui                                   *
****************************************************************************

 - QIcon:
   * [QTBUG-74252] If you call QIcon::setFallbackThemeName(), you should
     do it before the creation of the QGuiApplication; this now avoids
     a bug that resulted in the first loaded icons being empty.

 - HTML:
   * QTextDocument::toHtml() now exports letter and word spacing from the
     default format, if set, into the body tag. Such formatting can also
     be read back in.
   * [QTBUG-84981] Vertical alignment of images is now more compliant with
     the HTML standard: AlignBottom is the bottom of the line; AlignMiddle
     is between AlignTop and AlignBottom

 - Markdown:
   * [QTBUG-81306] QTextMarkdownImporter now correctly reads nested span
     formatting such as *italic ~~strikeout **bold `code` end**~~*
     including in link text and image alt text. The effects are mostly
     cumulative; however `code` blocks still completely override formatting.
   * [QTBUG-80603] QMarkdownWriter no longer tries to word-wrap code blocks;
     and code blocks nested in list items are formatted correctly.

 - Text:
   * Fixed a bug where glyphs would be clipped at very large sizes.

****************************************************************************
*                                QtTestLib                                 *
****************************************************************************

 - QCOMPARE:
   * QCOMPARE() now treats its values as equal when qFuzzyIsNull() is true
     for both of them.

****************************************************************************
*                                QtWidgets                                 *
****************************************************************************

 - QApplication:
   * Wheel events from a device that creates an event stream are correctly
     delivered to the widget that accepts the first wheel event in the
     stream.

 - QListView:
   * Moving selected items within a list view by drag'n'drop will maintain
     the selection of those items.

 - QMenu:
   * [QTBUG-84926] Fixed a regression that prevented pressing the mouse
     to open a menu, dragging over a menu item, and releasing to select it.
   * [QTBUG-76162] A submenu is always shown on its parent menu's screen.
     A text control's context menu is now always shown on the same screen.
     A menu on a QMenuBar can only be shown on the screen(s) where the
     menubar is visible.

 - QWidget:
   * setFocusProxy no longer moves focus away from a previously set focus
     proxy, restoring pre-Qt 5.13.1 behavior.

****************************************************************************
*                        Platform-specific changes                         *
****************************************************************************

 - Android
   * [QTBUG-83089] Support setting mimetypes and and namefilters for Android
     native file dialog.

 - iOS
   * [QTBUG-83811] When text is selected using handles in a read-only
     control, it's now possible for the edit menu popover to be configured
     to have a Copy action instead of Paste. So far this is used in QtPDF.

 - Linux
   * QFileDialog will open directories through the portal if required
     version of xdg-desktop-portal is running on the system.

 - X11
   * [QTBUG-83446] Fixed a drag-and-drop crash due to an invalid reply in
     QXcbDrag.
   * [QTBUG-56218] When keyboard modifiers change during drag-and-drop,
     a QDragMoveEvent is sent even if the mouse doesn't actually move, to
     allow updating the drop action and cursor.
   * [QTBUG-85275] Window geometry coordinates are now allowed to be up to
     32767.
   * [QTBUG-25351] The new QT_QPA_SYSTEM_ICON_THEME variable can override
     the icon theme name.

****************************************************************************
*                             Third-Party Code                             *
****************************************************************************

 - sqlite:
   * Upgraded to v3.32.1
   * Upgraded to v3.32.3
 - PCRE2 was updated to version 10.35.
 - libjpeg-turbo was updated to version 2.0.5
 - Documented the use of Khronos headers under MIT license in Qt GUI
   (ANGLE).